<?php
/**
 * User: @fs
 * Date: 2017/9/10
 * Time: 18:26
 */

define('IMOOC',realpath('.'));
define('CORE',IMOOC.'/core');
define('APP',IMOOC.'/app');
define('MODEL','app');
define('ISTWO',true);

define('DEBUG',true);
include "vendor/autoload.php";
if(DEBUG){
    $whoops = new \Whoops\Run;
    $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
    $whoops->register();
    ini_set('display_error','On');
}else{
    ini_set('display_error','Off');
}



include CORE.'/common/function.php';

include CORE.'/imooc.php';

spl_autoload_register('\core\imooc::load');


\core\imooc::run();